<template>
  <div>
    <h1>test2</h1>
    <div>{{ date }}</div>
  </div>
</template>
<script setup name="test2">
const date = ref(new Date().toLocaleString());
function test() {
  date.value = new Date().toLocaleString();
}
setInterval(test, 1000);
</script>
